function mat = scaleOffDiagonalRows(mat, s)

D = computeDimensions(size(mat, 1));

count = 1;
for i = 1:D
    for j = i:D
        if i ~= j
            mat(count, :) = mat(count, :)*s;
        end

        count = count + 1;
    end
end
